package me.zhengjie.Enum;

import lombok.Getter;
import me.zhengjie.pojo.PPInBoundAllowGroup;

/**
 * @author krilo
 * @date 2024-09-03 15:00
 */
@Getter
public enum InBoundType {

    //设置出入库的plc寄存器的寄存器的地址以及工作站点编码和名称
    P2_1(new PPInBoundAllowGroup(40010, 40011, 40001, 40419, "7号口", "station7")),

    P2_4(new PPInBoundAllowGroup(40012, 40013, 40002, 40420, "1号口", "station1")),

    P2_5(new PPInBoundAllowGroup(40014, 40015, 40003, 40421, "8号口", "AInBound2")),

    P2_6(new PPInBoundAllowGroup(40016, 40017, 40004, 40422, "9号口", "AInBound3")),

    P2_14(new PPInBoundAllowGroup(40018, 40019, 40005, 40423, "2号口", "AOutBound2")),

    P2_15(new PPInBoundAllowGroup(40020, 40021, 40006, 40424, "3号口", "AOutBound3")),

    P2_16(new PPInBoundAllowGroup(40022, 40023, 40007, 40425, "4号口", "AOutBound4")),

    P2_17(new PPInBoundAllowGroup(40024, 40025, 40008, 40426, "5号口", "AOutBound5")),

    P2_18(new PPInBoundAllowGroup(40026, 40027, 40009, 40427, "6号口", "AOutBound6"));

    // 获取ppInBoundAllowGroup参数
    // 声明ppInBoundAllowGroup变量，类型为PPInBoundAllowGroup
    private final PPInBoundAllowGroup ppInBoundAllowGroup;

    // 构造函数，传入PPInBoundAllowGroup参数
    InBoundType(PPInBoundAllowGroup ppInBoundAllowGroup) {
        this.ppInBoundAllowGroup = ppInBoundAllowGroup;
    }

}
